Page({
  data: {
    announcementList: []
  },
  async onLoad() {
    wx.utils.toast('显示成功')
    this.getAnnouncement()
  },
  async getAnnouncement() {
    const res = await wx.http({
      url: '/announcement',
    })
    console.log(res)
    this.setData({
      announcementList: res.data
    })
  }
})
